#include<iostream>

using namespace std;

int main()
{
    float w, h;
    cin >> w >> h;
    float flag = w / (h * h);
    printf("%.1f\n%s", flag, (flag > 25 ? "PANG" : "Hai Xing"));
    return 0;
}